package com.winphone.uavc.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.winphone.uavc.common.Constant;

import java.util.Date;


/**
 * <p>
 * 
 * </p>
 *
 * @author lwl
 * @since 2017-12-13
 */
@TableName("sys_user")
public class SysUser extends SuperEntity<SysUser> {

    private static final long serialVersionUID = 1L;
	/**
	 * 企业ID
	 */
	@TableField("org_id")
	private Long orgId;

	/**
     * 账户类型	平台/公司
     */
	private String type;
    /**
     * 用户名
     */
	private String username;
    /**
     * 密码
     */
	private String password;
    /**
     * 真实姓名
     */
	private String truename;
    /**
	 * 性别(1、男 2、女)
	 */
	private String sex;
	/**
	 * 联系方式
	 */
    private String phone;
	/**
	 * 邮箱
	 */
    private String email;
	/**
	 * 系统用户状态(1、正常，2锁定)
	 */
	@TableField("state")
	private String state = Constant.SYSUSER_STATE_1;

    /**
     * 是否删除( 0未删除  1删除)
     */
	@TableField("is_delete")
	private String isDelete;
    /**
     * 创建人
     */
	@TableField("create_by")
	private Long createBy;
    /**
     * 创建时间
     */
	@TableField("create_date")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createDate;
    /**
     * 修改人
     */
	@TableField("update_by")
	private Long updateBy;
    /**
     * 修改时间
     */
	@TableField("update_date")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateDate;


	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Long getOrgId() {
		return orgId;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTruename() {
		return truename;
	}

	public void setTruename(String truename) {
		this.truename = truename;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	public Long getCreateBy() {
		return createBy;
	}

	public void setCreateBy(Long createBy) {
		this.createBy = createBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Long getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(Long updateBy) {
		this.updateBy = updateBy;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}


}
